package exception;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.text.ParseException;
import java.text.SimpleDateFormat;

public class demo1 {
    public static void main(String[] args) throws FileNotFoundException, ParseException {
//        test1();
//        test2();
    }

    public static void test2() throws ParseException, FileNotFoundException {
        SimpleDateFormat sdf = new SimpleDateFormat();
        sdf.parse("00:00:00");
        FileInputStream fis = new FileInputStream("asd");
    }

    private static void test1() {
        String s = null;
        String str = s.valueOf("abc");
        System.out.println(str);

        int[] arr = new int[10];
//        int i = arr[10];
        for (int i = 0; i <= arr.length; i++) {
            System.out.println(arr[i]);
        }
    }
}
